/*
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *如果数据库字段发生变化，请在代码生器重新生成此Model
 */
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using VOL.Entity.SystemModels;

namespace VOL.Entity.DomainModels
{
    [Entity(TableCnName = "省市县",TableName = "Region")]
    public class Region:BaseEntity
    {
        /// <summary>
       ///
       /// </summary>
       [Key]
       [Display(Name ="id")]
       [Column(TypeName="int")]
       [Required(AllowEmptyStrings=false)]
       public int id { get; set; }

       /// <summary>
       ///编号
       /// </summary>
       [Display(Name ="编号")]
       [MaxLength(50)]
       [Column(TypeName="varchar(50)")]
       public string Code { get; set; }

       /// <summary>
       ///省市县
       /// </summary>
       [Display(Name ="省市县")]
       [MaxLength(40)]
       [Column(TypeName="varchar(40)")]
       public string Name { get; set; }

       /// <summary>
       ///父级编号
       /// </summary>
       [Display(Name ="父级编号")]
       [Column(TypeName="int")]
       public int? ParentId { get; set; }

       /// <summary>
       ///级别
       /// </summary>
       [Display(Name ="级别")]
       [Column(TypeName="int")]
       public int? Level { get; set; }

       /// <summary>
       ///完整级别
       /// </summary>
       [Display(Name ="完整级别")]
       [MaxLength(100)]
       [Column(TypeName="varchar(100)")]
       public string Mername { get; set; }

       /// <summary>
       ///精度
       /// </summary>
       [Display(Name ="精度")]
       [Column(TypeName="float")]
       public float? Lng { get; set; }

       /// <summary>
       ///纬度
       /// </summary>
       [Display(Name ="纬度")]
       [Column(TypeName="float")]
       public float? Lat { get; set; }

       /// <summary>
       ///拼音
       /// </summary>
       [Display(Name ="拼音")]
       [MaxLength(100)]
       [Column(TypeName="varchar(100)")]
       public string pinyin { get; set; }

       
    }
}